m = 0
for i in range(4):
    m += int(input(f"请用键盘输入第{i+1}个数字："))
print(m)